import * as THREE from 'three'
import createApp from '../../core'

function createBoxHelper (dom: HTMLElement) {
  const { camera, scene } = createApp(dom)
  camera.position.set(-80, 120, 100)
  camera.lookAt(scene.position)

  // 半径为30的球形
  const sphere = new THREE.SphereGeometry(30)
  const material = new THREE.MeshBasicMaterial({ color: 0xff0000 })
  const object = new THREE.Mesh(sphere, material)
  const box = new THREE.BoxHelper(object, 0xffff00)
  scene.add(box)
}

export {
  createBoxHelper
}
